package com.xomily.devops.agent.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * @version V1.0
 * @ClassName: DevNetLog.java
 * @author: xomily (2327742507@qq.com)
 * @date: 2021年12月02日
 * @Description: DevNetLog.java
 * @Copyright: 2021-2022 www.xomily.com. All rights reserved.
 */
public class DevNetLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 主机ip地址 */
    private String ip;

    /** 网卡id */
    private Long netId;

    /** RXPCK */
    private Long rxpck;

    /** TXPCK */
    private Long txpck;

    /** 名称 */
    private String name;

    /** RXBYT */
    private Long rxbyt;

    /** TXBYT */
    private Long txbyt;

    /** RXERROR */
    private Long rxerr;

    /** TXERROR */
    private Long txerr;


    /** 发生时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date generateTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }
    public void setNetId(Long netId) 
    {
        this.netId = netId;
    }

    public Long getNetId() 
    {
        return netId;
    }
    public void setRxpck(Long rxpck) 
    {
        this.rxpck = rxpck;
    }

    public Long getRxpck() 
    {
        return rxpck;
    }
    public void setTxpck(Long txpck) 
    {
        this.txpck = txpck;
    }

    public Long getTxpck() 
    {
        return txpck;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setRxbyt(Long rxbyt) 
    {
        this.rxbyt = rxbyt;
    }

    public Long getRxbyt() 
    {
        return rxbyt;
    }
    public void setTxbyt(Long txbyt) 
    {
        this.txbyt = txbyt;
    }

    public Long getTxbyt() 
    {
        return txbyt;
    }
    public void setRxerr(Long rxerr) 
    {
        this.rxerr = rxerr;
    }

    public Long getRxerr() 
    {
        return rxerr;
    }
    public void setTxerr(Long txerr) 
    {
        this.txerr = txerr;
    }

    public Long getTxerr() 
    {
        return txerr;
    }

    public void setGenerateTime(Date generateTime) 
    {
        this.generateTime = generateTime;
    }

    public Date getGenerateTime() 
    {
        return generateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ip", getIp())
            .append("netId", getNetId())
            .append("rxpck", getRxpck())
            .append("txpck", getTxpck())
            .append("name", getName())
            .append("rxbyt", getRxbyt())
            .append("txbyt", getTxbyt())
            .append("rxerr", getRxerr())
            .append("txerr", getTxerr())
            .append("createTime", getCreateTime())
            .append("generateTime", getGenerateTime())
            .toString();
    }
}
